import React from 'react';
import {Link} from 'react-router-dom';
import useCityReducer from '../Reducer';
const Index = () => {
    const {state} = useCityReducer()
   
    return (
        <div>
            home
            <Link to='/city'><button >{state.city} </button></Link>
            
        </div>
    );
}

export default Index;
